package Manager;

/**
 *
 * @author CONG
 */
public class Manager {

    private AccountManager account;
    private AdminManager admin;
    private BranchManager branch;
    private DurationManager duration;
    private LoanTypeManager loanType;
    private AccountDetailsManager accountDetails;
    private CustomerDurationsManager customerDurations;
    private DurationDetailsManager durationDetails;
    private RoleManager roleManager;
    public Manager() {
        account = new AccountManager();
        admin = new AdminManager();
        branch = new BranchManager();
        this.duration = new DurationManager();
        loanType = new LoanTypeManager();
        accountDetails = new AccountDetailsManager();
        customerDurations = new CustomerDurationsManager();
        durationDetails = new DurationDetailsManager();
        roleManager=new RoleManager();
    }

    public AccountManager getAccountManager() {
        return account;
    }

    public AdminManager getAdminManager() {
        return admin;
    }

    public BranchManager getBranchManager() {
        return branch;
    }

    public DurationManager getDurationManager() {
        return this.duration;
    }

    public LoanTypeManager getLoanTypeManager() {
        return loanType;
    }

    public AccountDetailsManager getAccountDetailsManager() {
        return accountDetails;
    }

    public CustomerDurationsManager getCustomerDurationsManager() {
        return customerDurations;
    }

    public DurationDetailsManager getDurationDetailsManager() {
        return durationDetails;
    }
    public RoleManager getRoleManager(){
        return roleManager;
    }
}
